package cn.janyd.jmall.user.rpc.user.dto;

import cn.janyd.common.core.validator.Mobile;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author janyd
 * @since 2020/8/10 16:03
 */
@Data
@Accessors(chain = true)
public class UserCreateReqDTO implements Serializable {

    @Mobile
    @NotNull(message = "{1001001001}")
    private String phone;

    /**
     * IP
     */
    @NotNull(message = "{1001001002}")
    private String ip;
}
